package com.jic.market.response;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: gaolanyu
 * @date: 2020-01-09
 * @remark:
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CouponDetailResponse implements Serializable {

    @ApiModelProperty("券code")
    private String couponCode;

    //优惠券Id
    @ApiModelProperty(notes = "优惠券Id")
    private String promotionId;
    //优惠券名称
    @ApiModelProperty(notes = "优惠券名称")
    private String promName;
    //订单编号
    @ApiModelProperty(notes = "订单编号")
    private String orderId;
    //使用渠道
    @ApiModelProperty(notes = "使用渠道")
    private String channelCodes;
    //生券日期
    @ApiModelProperty(notes = "生券日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //有效开始时间
    @ApiModelProperty(notes = "有效开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date couponUseStartTime;
    //有效结束时间
    @ApiModelProperty(notes = "有效结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date couponUseEndTime;
    //绑定使用的手机号
    @ApiModelProperty(notes = "手机号")
    private String useMobile;
    @ApiModelProperty(notes = "邮箱")
    private String email;
    //状态 0已发行 1可使用 2已使用 3已过期 4已作废
    @ApiModelProperty(notes = "状态 0已发行 1可使用 2已使用 3已过期 4已作废")
    private String status;
    //绑券时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(notes = "绑券时间")
    private Date bindTime;

    @ApiModelProperty("优惠券面值")
    private BigDecimal couponAmount;

    @ApiModelProperty("订单金额限制")
    private BigDecimal useTotalAmountLimit;


    @ApiModelProperty("优惠券范围")
    private Integer couponPlatform;
    @ApiModelProperty("优惠券类型")
    private Integer couponType;
    @ApiModelProperty("金额抵扣类型")
    private Integer amountDeductType;

}
